package com.rubiksillusions;

public class OrientationOfLastLayerEdgesAlgorithm extends Algorithm {
	public String execute(RubiksCube rubiksCube) {
		if (!rubiksCube.testStatus(".y.yyy.y..............................................")) {
			for (int i = 0; i < 4; i++) {
				boolean executed = false;
				
				if (!executed) executed = rubiksCube.executeStatusMovesList("....y................y..........................y.....", "F U R U' R' F' ", true);
				if (!executed) executed = rubiksCube.executeStatusMovesList("....y................y........y.......................", "F R U R' U' F' ", true);

				rubiksCube.executeMovesList("Z' ", true);
			}
		}
		return rubiksCube.getExecutedMovesList(true);
	}
}
